\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}

\usepackage[pdftex]{graphicx}
\usepackage{color}
\usepackage{setspace}
\usepackage{fancyhdr}
\usepackage[spanish]{babel}
\usepackage{amssymb}
\usepackage[letterpaper]{geometry}
\usepackage{lscape}
\usepackage{indentfirst}
\usepackage[pdffitwindow]{hyperref}
\hypersetup{
    colorlinks,%
    citecolor=black,%
    filecolor=black,%
    linkcolor=black,%
    urlcolor=black
}
\usepackage[toc]{glossaries}

\raggedbottom

% Use input characters instead of escape codes


\usepackage{titlesec}
\titlespacing{\chapter}{0pt}{-40pt}{10pt}
\titleformat{\chapter}[hang]{\normalfont\huge\bfseries}{\chaptertitlename\
\thechapter}{20pt}{\Huge}
\selectlanguage{spanish}

\usepackage[apaciteclassic]{apacite}                                                           
%bibliography in apa-style
\usepackage{tocbibind}
\usepackage{textcomp} 
\usepackage{fancybox}% http://ctan.org/pkg/fancybox
\usepackage{lipsum}% http://ctan.org/pkg/fancybox